import { HttpErrorResponse } from "@angular/common/http";
import { throwError } from "rxjs";

export abstract class ApiService {
    protected handleError(error: HttpErrorResponse) {
        console.log("ABSTRACT CLASS");
        if(error.status === 500) {
            console.log("Not Found")
        }
        return throwError({
            error,
            redirection: true,
            message: "Please Try Again"
        });
    }
}